package com.zqk.principle.dependence;

/**
 * @Package com.zql.principle.dependence
 * @Description:TODO
 * @Author 张乾坤
 * @Create: 2018/10/25
 * @Version 1.0
 * @Update: message
 */
public class Test {
    public static void main(String[] args) {
//2
        /*Geely geely=new Geely();
        geely.studyImoocCourse(new JavaCourse());
        geely.studyImoocCourse(new FECourse());*/
    //3
        /*Geely geely=new Geely(new JavaCourse());
        geely.studyImoocCourse();

        Geely geely1=new Geely(new FECourse());
        geely1.studyImoocCourse();*/

        Geely geely=new Geely();
        geely.setiCourse(new JavaCourse());
        geely.studyImoocCourse();

        geely.setiCourse(new FECourse());
        geely.studyImoocCourse();


    }




}
